home *** CD-ROM | disk | FTP | other *** search
/ Holt Researcher: American History / Holt Researcher: American History.iso / pc / modules / dbtext.dxr / 00006_PlatForm, File io.ls < prev    next >
Encoding:
Text File  |  2000-01-18  |  531 b   |  29 lines

  1. on GetTextExtension
  2.   if the machineType = 256 then
  3.     Extension = ".txt"
  4.   else
  5.     Extension = EMPTY
  6.   end if
  7.   return Extension
  8. end
  9.  
  10. on IsKeyBoardEquivalentDown
  11.   if the machineType = 256 then
  12.     return the controlDown
  13.   else
  14.     return the commandDown
  15.   end if
  16. end
  17.  
  18. on GetSavePathandName xName
  19.   unLoad()
  20.   FileioObj = new(xtra("fileio"))
  21.   if not objectp(FileioObj) then
  22.     beep()
  23.   else
  24.     pathAndName = displaySave(FileioObj, "Where would you like to save?", xName)
  25.     FileioObj = 0
  26.     return pathAndName
  27.   end if
  28. end
  29.